import cv2
img1=cv2.imread('G:\image\wd2.jpg')
print('type(img1):',type(img1))
print('img1:',img1)
img2=cv2.imread('G:\image\wd.txt')
print('type(img2):',type(img2))
print('img2:',img2)
img3=cv2.imread('G:\image\wd1.txt')
print('type(img3):',type(img3))
print('img3:',img3)


import cv2
image=cv2.imread('puppy.jpg',1)
cv2.imshow('puppy.jpg',image)
cv2.imwrite('D:/a/wd_save.jpg:',image)
cv2.waitKey()
cv2.destroyWindow()


img=cv2.imread('G:\image\school1.png')
print('img.shape:',img.shape)
rows=img.shape[0]
cols=img.shape[1]
channel=img.shape[2]
print('rows=%d,cols=%d,channel=%d'%(rows,cols,channel))
print("size=",img.size)
print("dtype=",img.dtype)